﻿using System;

namespace AZProjekt
{
    internal class Vertex : IComparable<Vertex>
    {
        public int Index { get; set; }
        public int Distance { get; set; }
        public bool Visited { get; set; }
        public int Predecessor { get; set; }

        public int CompareTo(Vertex other)
        {
            if (other.Distance > Distance)
                return -1;
            if (other.Distance < Distance)
                return 1;

            return 0;
        }
    }
}
